#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
//#define OFFSETOF(type,num) (size_t)&(((type*)0)->num)
//
//struct s
//{
//	char c1;
//	int a;
//	char c2;
//};
//int main()
//{
//	printf("%zd\n", OFFSETOF(struct s, c1));
//	printf("%zd\n", OFFSETOF(struct s, a));
//	printf("%zd\n", OFFSETOF(struct s, c2));
//
//	return 0;
//}

#define SwapIntBit(n) (((n) & 0x55555555) << 1 | ((n) & 0xaaaaaaaa) >> 1)
int main()
{
	int x = 100;
	printf("%d", SwapIntBit(x));

	return 0;
}